package com.nearby.demand.request;

/**
 * Created by IME on 2015/12/27.
 */
public enum EnumCode {
    success("success"), error("error");

    private EnumCode(String valString) {
        this.valueString = valString;
    }

    public static int size() {
        return EnumCode.values().length;
    }

    public String valueString;

    public String toString() {
        return valueString;
    }

    public static EnumCode valueof(String vaString) {
        if (vaString.equals("success")) {
            return EnumCode.success;
        } else if (vaString.equals("error")) {
            return EnumCode.error;
        }
        return null;

    }
}
